package org.swim.core.manager;

import java.util.Date;
import java.util.Map;

import org.swim.core.entities.User;


public class LoginManager {

	public class Login{
		private Date timestamp;
		private User user;
		
		public Login(Date timestamp, User user) {
			super();
			this.timestamp = timestamp;
			this.user = user;
		}
		public Date getTimestamp() {
			return timestamp;
		}
		public void setTimestamp(Date timestamp) {
			this.timestamp = timestamp;
		}
		public User getUser() {
			return user;
		}
		
	}
	
	Map<String, Login> loggedUsers;
	
	private static LoginManager dm;
	
	public static LoginManager getDatasourceManager(){
		if(dm==null)
			dm = new LoginManager();
		
		return dm;
	}
	
	
}
